-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(platform-server): wait for async app initializers to complete before removing server side styles #16712
Conversation
for (let i = 0; i < appInits.length; i++) { | ||
const initResult = appInits[i](); | ||
|
||
const that = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const complete = () => {...}
Array.prototype.slice.apply(dom.querySelectorAll(document, `style[ng-transition]`)); | ||
styles.filter(el => dom.getAttribute(el, 'ng-transition') === transitionId) | ||
.forEach(el => dom.remove(el)); | ||
export function bootstrapListenerFactory(transitionId: string, document: any, injector: Injector) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe update this old name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the public api change. otherwise lgtm
…ore removing server side styles This fixes a flicker when transitioning from server rendered page to client rendered page in lazy loaded routes by waiting for the lazy loaded route to finish loading, assuming initialNavigation on the route is set to 'enabled'. Fixes #15716
…ore removing server side styles (angular#16712) This fixes a flicker when transitioning from server rendered page to client rendered page in lazy loaded routes by waiting for the lazy loaded route to finish loading, assuming initialNavigation on the route is set to 'enabled'. Fixes angular#15716
…ore removing server side styles (angular#16712) This fixes a flicker when transitioning from server rendered page to client rendered page in lazy loaded routes by waiting for the lazy loaded route to finish loading, assuming initialNavigation on the route is set to 'enabled'. Fixes angular#15716
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This fixes a flicker when transitioning from server rendered page to client rendered page in lazy loaded routes by waiting for the lazy loaded route to finish loading, assuming initialNavigation on the route is set to 'enabled'.
Fixes #15716
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
There is a flicker when transitioning from server side rendered page to lazy loaded routes, even when initialNavigation is set to 'enabled'
What is the new behavior?
There is no flicker. Server side styles are removed only after the lazy loaded route has finished loading.
Does this PR introduce a breaking change? (check one with "x")